import requests from '@/api/request'
// const SERVER_URL = ''
export default {
  // 查询
  queryList (data) {
    return requests({
        url: `/v1/api/backend/corporation/queryList`,
      method: 'post',
      data
    })
  },

  // 新增项目点
  queryDetail (data) {
    return requests({
      url: `/v1/api/backend/product/queryDetail`,
      method: 'post',
      data
    })
  },
  // 新增项目点
  addProjectLocation (data) {
    return requests({
      url: `/v1/api/backend/product/addProjectLocation`,
      method: 'post',
      data
    })
  },
  editProjectLocation (data) {
    return requests({
      url: `/v1/api/backend/product/editProjectLocation`,
      method: 'post',
      data
    })
  },
  //新增信用卡
  addCredit (data) {
    return requests({
      url: `/v1/api/backend/product/addCredit`,
      method: 'post',
      data
    })
  },
  editCredit (data) {
    return requests({
      url: `/v1/api/backend/product/editCredit`,
      method: 'post',
      data
    })
  },
  addLoan (data) {
    return requests({
      url: `/v1/api/backend/product/addLoan`,
      method: 'post',
      data
    })
  },
  editLoan (data) {
    return requests({
      url: `/v1/api/backend/product/editLoan`,
      method: 'post',
      data
    })
  },
  queryByCondition (data) {
    return requests({
      url: `/v1/api/backend/product/queryByCondition`,
      method: 'post',
      data
    })
  },
  editProductStatus (data) {
    return requests({
      url: `/v1/api/backend/product/editProductStatus`,
      method: 'post',
      data
    })
  },
  delProjectLocation (data) {
    return requests({
      url: `/v1/api/backend/product/delProjectLocation/${data}`,
      method: 'post',
    })
  },
  delProduct (data) {
    return requests({
      url: `/v1/api/backend/product/delProduct/${data}`,
      method: 'post',
    })
  },
}
